<template>
	<div class="content">
		<div class="title">
			{{ $t('ivcs.chooseservertype') }}
		</div>

		<div class="item">
			<div class="content" @click="goto(1)">
				<img src="../../static/image/inputform.png" class="picimage" />
				<div class="t1">{{ $t('ivcs.submitdata') }}</div>
			</div>
			<div class="content" style="margin-left: -100px" @click="goto(2)">
				<img src="../../static/image/callagent.png" class="picimage" />
				<div class="t1">{{ $t('ivcs.callagent') }}</div>
			</div>
		</div>

		<!--<img src="../../static/image/kefu.png" style="width: 40px;height: 40px;margin-top: 20px">-->

		<!--<div class="op defaultbackColor" @click="goto(1)">提交资料</div>-->
		<!--<div class="op defaultbackColor" @click="goto(2)">呼叫客服</div>-->
	</div>
</template>

<script>
export default {
	name: 'ServerType',
	methods: {
		goto(index) {
			if (index === 1) {
				this.$router.push('/input');
			} else if (index === 2) {
				localStorage.setItem('userInfoFormId', '-1');
				let query = this.$route.query;
				let virtualAgentType = query.virtualAgentType;
				let qv = '';
				if (virtualAgentType) {
					if (virtualAgentType !== 'registered' && virtualAgentType !== 'unregistered') {
						virtualAgentType = 'registered';
					}
					qv = 'virtualAgentType=' + virtualAgentType;
				}
				this.$router.push('/start' + '?' + qv);
			}
		}
	}
};
</script>

<style scoped>
.content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.title {
	width: 100%;
	height: 45px;
	font-size: 18px;
	font-family: PingFangSC;
	font-weight: 600;
	color: rgba(51, 51, 51, 1);
	line-height: 45px;
	margin-top: 100px;
}

.item {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	margin-top: 30px;
	width: 100%;
}

.picimage {
	width: 100px;
	height: 100px;
}

.t1 {
	width: 128px;
	height: 45px;
	font-size: 16px;
	font-family: PingFangSC-Semibold, PingFang SC;
	font-weight: 600;
	color: rgba(100, 202, 171, 1);
	line-height: 45px;
	margin-top: 5px;
}

.op {
	width: 300px;
	height: 40px;
	/*background:rgba(0,194,255,1);*/
	font-size: 14px;
	font-family: PingFangSC;
	font-weight: 600;
	color: rgba(255, 255, 255, 1);
	line-height: 40px;
	text-align: center;
	margin-top: 40px;
	border-radius: 20px;
}
</style>
